(function() {
    'use strict';

    /**
     * @ngdoc directive
     * @name webApp.directive:dialog
     * @description
     * # dialog
     */
    angular.module('webApp')
        .directive('mydialog', ["$rootScope", "helper", function($rootScope, helper) {
            return {
                restrict: 'E',
                templateUrl: "views/directives.dialog.html",
                controller: ['$scope', '$timeout', function($scope, $timeout) {

                }],
                link: function(scope, elem, attrs, ctr) {
                    scope.ok = "确认";
                    scope.cancel = "取消";
                    scope.content = "这是内容";
                }
            }
        }]);
})();